<?php
/**
 * Created by PhpStorm.
 * User: zhangrxiang
 * Date: 2016/11/9
 * Time: 15:58
 * Project name: PHPTEST
 * File name: fun.php
 * @copyright Copyright (c) 2016 ZRX Software LLC
 * @license https://github.com/zhangrxiang
 * @since 1.0.0
 */

function br($result=null){
    if(is_array($result)){
        echo "<pre>";
        var_dump($result);
        echo "</pre>";
    }
    if (is_string($result)){
        echo "<br>------------------------------$result----------------------------------<br>";
    }
    if (is_numeric($result)){
        echo $result."<br>";
    }
    if (is_null($result)){
        echo "<br>";
    }
}